package com.codes.core.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @Date 2020/5/27 18:53
 * @Created by peanut
 */
public class CommonUtil {

    public static boolean isContainChinese( String str) {
        String regex = "[\u4e00-\u9fa5]";   //汉字的Unicode取值范围
        Pattern pattern = Pattern.compile(regex);
        Matcher match = pattern.matcher(str);
        return match.find();
    }


}